import {
  mapGetters
} from 'vuex'
export default {
  computed: {
    ...mapGetters('m_cart', ['total'])
  },
  onLoad() {
    uni.setTabBarBadge({
      index: 2,
      text: this.total + ''
    })
  },
  watch: {
    taotal(val) {
      uni.setTabBarBadge({
        index: 2,
        text: val + ''
      })
    }
  }
}
